﻿<Page x:Class="Framework_Tool.StudentAdd"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="547" d:DesignWidth="1042"
	Title="StudentAdd">
    <Grid Name="mainContent" Loaded="mainContent_Loaded_1">
        <Border BorderBrush="#FF311E51" BorderThickness="3" CornerRadius="30" Width="1042" Height="547" VerticalAlignment="Top" HorizontalAlignment="Left">
            <Grid>
                <Border Name="mask" CornerRadius="27" >
                    <Border.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF311E51" Offset="0"/>
                            <GradientStop Color="#FF594F6B" Offset="1"/>
                        </LinearGradientBrush>
                    </Border.Background>
                </Border>
                <StackPanel HorizontalAlignment="Left" Orientation="Horizontal" Margin="30,0,0,0" VerticalAlignment="Top" Width="874">
                    <Button Margin="0,0,25,0" x:Name="viewStudentBtn" Content="View" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="viewStudentBtn_Click_1" />
                    <Button Margin="0,0,25,0" x:Name="addStudentBtn" Content="Add" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
                    <Button Margin="0,0,25,0" x:Name="updateStudentBtn" Content="Update" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Right"  FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="updateStudentBtn_Click_1" />
                    <Button Margin="0,0,25,0" x:Name="deleteStudentBtn" Content="Delete" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="deleteStudentBtn_Click_1" />
                    <Button Margin="0,0,25,0" x:Name="searchStudentBtn" Content="Search" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Right"  FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="searchStudentBtn_Click_1" />
                </StackPanel>
                <Label x:Name="addStdt" Content="Add Student" Margin="70,65,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="20" RenderTransformOrigin="-0.551,0.513" FontWeight="Bold" />
                <Label x:Name="stdtFName" Content="First Name" Margin="70,190,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" RenderTransformOrigin="-0.551,0.513" FontSize="14" />
                <Grid Margin="200,190,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <TextBox x:Name="stdtFNameTxt" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" />
                </Grid>
                <Label x:Name="stdtSurname" Content="Surname" Margin="70,225,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" Width="98" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <Grid Margin="200,225,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <TextBox x:Name="stdtSurnameTxt" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" />
                </Grid>
                <Label x:Name="stdtALine1" Content="Address Line 1" Margin="70,285,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <Grid Margin="200,285,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <TextBox x:Name="stdtALine1Txt" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" />
                </Grid>
                <Label x:Name="stdtALine2" Content="Address Line 2" Margin="70,320,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <Grid Margin="200,320,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <TextBox x:Name="stdtALine2Txt" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" />
                </Grid>
                <Label x:Name="stdtCity" Content="City" Margin="70,355,0,0"  Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <Grid Margin="200,355,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <TextBox x:Name="stdtCityTxt" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" />
                </Grid>
                <Label x:Name="stdtCounty" Content="County" Margin="70,390,0,0"  Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <Grid Margin="200,390,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <TextBox x:Name="stdtCountyTxt" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" />
                </Grid>
                <Label x:Name="stdtPostcode" Content="Postcode" Margin="70,425,0,0"  Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <Grid Margin="200,425,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <TextBox x:Name="stdtPostcodeTxt" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" LostFocus="stdtPostcodeTxt_LostFocus_1" />
                </Grid>
                <Label x:Name="validPostcodeLbl" Visibility="Hidden" Background="#FFA99BB6" Margin="410,425,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" FontWeight="Bold" Content="Invalid Postcode" Width="130"/>
                <Label x:Name="stdtTelNo" Content="Telephone No." Margin="480,130,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <Grid Margin="620,130,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <TextBox x:Name="stdtTelNoTxt" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" />
                </Grid>
                <Label x:Name="stdtEmail" Content="Email Address" Margin="480,165,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" RenderTransformOrigin="-0.551,0.513" FontSize="14" />
                <Grid Margin="620,165,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <TextBox x:Name="stdtEmailTxt" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" LostFocus="stdtEmailTxt_LostFocus_1" />
                </Grid>
                <Label x:Name="stdtEmailValidationLbl" Visibility="Hidden" Background="#FFA99BB6" Margin="825,165,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" RenderTransformOrigin="-0.551,0.513" FontSize="14"  FontWeight="Bold" Width="180"/>
                <Label x:Name="pic" Content="Picture" Margin="480,225,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <Grid Margin="620,225,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" >
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <TextBox x:Name="stdtPicTxt" HorizontalAlignment="Left" Height="25" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" />
                </Grid>
                <Grid Margin="830,225,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" BorderThickness="1" HorizontalAlignment="Left" Height="25"  Width="70" CornerRadius="12">
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FF28B5D3" Offset="0.406"/>
                                <GradientStop Color="White"/>
                            </LinearGradientBrush>
                        </Border.Background>
                    </Border>
                    <Button Content="Browse" x:Name="stdtPicBrowse" FontSize="14" Height="25" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Foreground="White" Width="70" Click="stdtPicBrowse_Click" />
                </Grid>
                <Label x:Name="stdtCourseTitle" Content="Course Title" Margin="480,285,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" RenderTransformOrigin="-0.551,0.513" />
                <ComboBox Margin="620,285,0,0" x:Name="stdtCourseTitleCmbx" HorizontalAlignment="Left" Height="25" VerticalAlignment="Top" Width="200" FontSize="14" SelectionChanged="stdtCourseTitleCmbx_SelectionChanged" />
                <Label x:Name="stdtCourseIDLbl" Content="Course ID" Margin="830,285,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" RenderTransformOrigin="-0.551,0.513" FontSize="14" />
                <Label x:Name="stdtIDAdd" Content="Student ID" Margin="70,130,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" RenderTransformOrigin="-0.551,0.513" FontSize="14" />
                <TextBox x:Name="stdtIDAddTxt" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" VerticalAlignment="Top" Width="200" FontSize="14" IsEnabled="False" Margin="200,130,0,0" />
                <Label x:Name="stdtPwrdAddLbl" Content="Password" Margin="480,345,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" RenderTransformOrigin="-0.551,0.513" FontSize="14" />
                <Grid Margin="620,345,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <PasswordBox x:Name="stdtPwrdAddTxt" HorizontalAlignment="Left" Height="25" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" LostFocus="stdtPwrdAddTxt_LostFocus_1" />
                </Grid>
                <Label x:Name="validStdtPasswordLbl" Visibility="Hidden" Background="#FFA99BB6" Margin="825,345,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" FontWeight="Bold" Width="180"/>
                <Label x:Name="stdtPwrd1AddLbl" Content="Re-Enter Password" Margin="480,380,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" RenderTransformOrigin="-0.551,0.513" FontSize="14" />
                <Grid Margin="620,380,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Border BorderBrush="#FF28B5D3" HorizontalAlignment="Left" Width="200" CornerRadius="15" Background="White" />
                    <PasswordBox x:Name="stdtPwrd1AddTxt" HorizontalAlignment="Left" Height="25" VerticalAlignment="Top" Width="200" FontSize="14" BorderBrush="{x:Null}" Background="Transparent" LostFocus="stdtPwrd1AddTxt_LostFocus_1" />
                </Grid>
                <TextBlock x:Name="stfPasswordInstructions" Text="Passwords must be: 8-15 characters; contain at least one capital letter, one lowercase letter and a number." Margin="620,410,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="12" TextWrapping="Wrap"  Width="290" FontStyle="Italic"/>
                <Label x:Name="matchStdtPasswordLbl" Visibility="Hidden" Background="#FFA99BB6" Margin="825,380,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" FontWeight="Bold" Content="Password does not match" Width="180"/>
                <Grid Margin="100,470,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Visibility="Hidden" x:Name="stdtAddedLblGrid">
                    <Border HorizontalAlignment="Left" Width="350" CornerRadius="15" Background="#FFF5E06B" />
                    <Label x:Name="stdtAddedLbl" Foreground="#FF311E51" Width="350" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="20" FontWeight="Bold" FontStyle="Italic" HorizontalContentAlignment="Center" />
                </Grid>
                <Grid Margin="600,450,195,30" VerticalAlignment="Bottom" HorizontalAlignment="Right">
                    <Border BorderBrush="#FF28B5D3" BorderThickness="1" Height="50"  Width="240" CornerRadius="12">
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FF28B5D3" Offset="0.406"/>
                                <GradientStop Color="White"/>
                            </LinearGradientBrush>
                        </Border.Background>
                    </Border>
                    <Button Content="Add Student" x:Name="stdtAdd" FontSize="25" Height="50" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Foreground="White" Width="240" Click="stdtAdd_Click_1" />
                </Grid>
                <Grid Margin="0,0,50,30" VerticalAlignment="Bottom" HorizontalAlignment="Right">
                    <Border BorderBrush="#FFC8C8C8" BorderThickness="1" HorizontalAlignment="Right" Height="50"  Width="130" CornerRadius="12">
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFC8C8C8" Offset="0.406"/>
                                <GradientStop Color="White"/>
                            </LinearGradientBrush>
                        </Border.Background>
                    </Border>
                    <Button Content="Reset" x:Name="restStdtAdd"  FontSize="25" Height="50" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Foreground="Black" Width="130" Click="restStdtAdd_Click_1"/>
                </Grid>
            </Grid>
        </Border>
    </Grid>
</Page>